/**
 * DLA/Oscilloscope Project Software
 * 
 * By Kevin Cuzner <kevincuzner@yahoo.com>
 * 
 * This file is part of the DLA/Oscilloscope Project Software.
 *
 * The DLA/Oscilloscope Project Software is free software: you can 
 * redistribute it and/or modify it under the terms of the GNU Lesser
 * General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * The DLA/Oscilloscope Project Software is distributed in the hope
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with The DLA/Oscilloscope Project Software.
 * If not, see <http://www.gnu.org/licenses/>.
 */

using System;
using System.Collections.Generic;

namespace DLAOscilloscopegtk
{
	/**
	 * A group of samples produced from a SampleWindow. This usually encapsulates either
	 * an analog channel or a digital channel
	 */
	public class SampleGroup
	{
		protected List<Sample> samples;
		protected SampleType type; //the type of samples this window has in it
		protected ulong frequency; //the sample frequency
		protected string name; //the name of this samplegroup
	
		/**
		 * Constructs a SampleGroup
		 * @param samples reference to the list of samples assigned to this samplegroup
		 * @param type type of samples that this group contains
		 * @param frequency the frequency in Hz the samples were sampled at
		 */
		public SampleGroup (List<Sample> samples, SampleType type, ulong frequency, string name)
		{
			this.samples = samples;
			this.type = type;
			this.frequency = frequency;
			this.name = name;
		}
		
		public List<Sample> Samples {
			get {
				return samples;
			}
		}
		
		public SampleType Type {
			get {
				return type;
			}
		}
		
		public ulong Frequency {
			get {
				return frequency;
			}
		}
		
		public string Name {
			get {
				return name;
			}
		}
	}
}

